import java.util.HashSet;
import java.util.Set;

/**
 * @author wtcode
 * @date 2021/2/2 - 18:21
 */
public class offer03 {

    public int findRepeatNumber( int[] nums) {
        int result = 0;
        Set<Integer> set = new HashSet<Integer>();
        for(int num : nums){
            if(!set.contains(num)){
                set.add(num);
            }
            result = num;
            break;
        }
        return result;

    }
    public static void main(String[] args) {

    }
}
